Fixed recursive dicting of models.