Over releasing of object

Over releasing of object
Fix for#182

Fix for #182