fix for #158