fix queue problem