Fix export action in preferences