removing duplicate </dict> tag