fix for #271