Fixes ProtocolException