fix dynamic type error