fix queue copying order