Fix callback
Fix reference counting