fixing guid()