fix callback reference for namespaces