bugfix invalid guid checking