generateDesign: bug fix where factor levels where dropped