fixed typo for condition