Fix modal form rendering for nested models.