fix a compatibility bug with the latest netty