Fixing weird Queue.Empty bug