fixed a bug related to embedded dtos