Typo in conditional statement