fixed problem with export