Fix domain and protocol getters in profile