reset register when click again on it