Fix bad poping from queue - now front.