smala addition to the bug fix for #9