fix queue processing