Fixed useless check.