fixed bug. Issue #26.