Fixing an issue with multiple .As() registrations