Fixes crash on advancing past queue bounds