Fixed the update issue.
Added better SR-NOR latch.