fix guid fn