fix get type error bug