fix fegister first time