fix queue errors