fix type register
commit befor sleep