Fix 'Export' button. It downloads a file with a proper extension