Fixed small incorrect check.