Fixed SegFault with generating BEGUID