fix code type error