fix guid_gen