Fix a bug with the export command : when a sprite was deleted, the export file grow with some obsolete data