Fixes a bug with protocol versions