fix for bug 264
Merge pull request #15 from justdoo/master

Fix for bug 264.