Fix bug when serializaing several original files