fixed the check problem