fix for #46