fixed typo in conditional