Get from fifo return prevoius valu

In reply to alexkidd84:

Try to check for the size of the fifo. i think the size of fifo will be one by default.