Fixed small bug with worker hanging