fixed bug
see devnotes
Merge pull request #8 from lightshire/master

see devnotes