fixed an issue of protocol changed during 302.