fix function table type defs