bugfix on old export script