fix two small bugs
Merge pull request #1 from bernhard-da/fix_makeproblem

fix two small bugs