Fixed saving problem in export