fixed fifo_addr swapped problem and removed some debug logic