fixed wrong model inheritance