fixed typo in "if"