Fix namespace for class instance in Model class