fix func type definitions #3307