Corrected incorrect check.