Fixed duplicate entries problem by making an empty document before getting ifo from model and saving file