Fixed exporting from the correct directory