small validation fix