Aparently I suck at fixing the fifo empty logic