Queue fix when working with beanstalkd