posedge_latch fix