Fixed the way the gearman worker works