fixing export file error caused by saving query param