fix issue build error because of invalid type