fix for #171