fix null protocol argument bug

This resolves the issue reported in #11