fixing #76
fixing #76
another patch needed to make sure the fix for #76 works