Fix wrong check.