Fixed queue:pop not returning.