fixed(?) problem with isvalid