Wrong placement of check.