Fix RegisterCallback