fixed typos from #862 and #868
Merge pull request #870 from willemx/devel

fixed typos from #862 and #868