fix default protocol bug