fix mainjob.php