fix issue with exporting a categorical variable immediately after saving
Reviewer: Dan Jao