fixes #476
Merge pull request #515 from crbates/fpyfix

fixes #476