fixed condition typo