fix bug where Queue#pop deletes everything