Small fix to support case insensitive authority and codes