bug fix (thanks Herb)