Fix register success close modal error