My conditions are not working correctly, please help!