Fixed switched logic in export csv formats