fixed typo in conditional check.