gmii2fifo18.v: fixed minor bug and cleanup