Fix a bug in Redis queue