minor paramater validation fix