Fixed generation and uses of guid