Fixed bug mentioned in Issue #357
Merge pull request #358 from eandersson/master

Fix for Issue #357.