model table fix