Fix incorrect check.