fixed small problem with export script