fix queue initialization