Comment out the uptime check to see if that fixes an issue.