bugfix with export