fix check script