fixing FIFO stack pop method