fix for table type reflection when id is not int