Fix bug that can not reset register