Try to fix CastClassException in netty