fix for #165

fixes #165