several fixes in SimpleChannelInboundHandler