Fixed table inheritence problem