little validation fix