Fixed errors in redis queue handler