Fix for ProtocolCodec and PipelineFactory