fix re-registration
Merge pull request #51 from bhimasta/extra

fix re-registration