fixed a bug with if statements and numbers