key-value: fixed waiting for key update functionality.