fixed register failed.