fixes belongs to with inheritance