fixed isvalidid