fix a bug

get instance by protocol