fix the check script.