fixed sendJob method