Fix to make covertData work when there is a single variable