fix on latch values