fix plain protocal issue