fixed typo in if statement
fixed typo in if statement