Fix schema source registrations not being cleared