fixed 'guids' KeyError bug