Fixed bugs on job processing