fix related to generate incorrect type signature