fix issue when regestier