fixed bug when persisting a representation with the files storage;