Why are my conditions not working properly?