fix unregistering actor on release

fixed a small typo in the "release" method