this is fixed in recent ruby patchlevels