fixed register issue