Fixed logic typo.