Fix replacement callback deactivation