fixed bug where tool right-click csv export didn't work