Fixes a minor bug on model's attribute inheritance.