fix Model inheritance