rectify some register bug
merge thy