bugfix in makeProblem for data with only one key variable