bug fixes
Merge branch 'issue-14'