bugfix unregistration

Signed-off-by: Cfyzzz <Cfyzzz@narod.ru>
Merge pull request #4 from nortikin/master

bugfix unregistration