fix as suggested in #7333