fixes #709
Merge pull request #736 from Atskadan/penfix

fixes #709