fixed issue where unsusbcribe callback was not getting invoked