fix some bugs in regiter workflow