Fixed the check script.