fixed latch warnings