fixed bug 633
Merge pull request #814 from RoanKanninga/master

fixed bug #633