fix bugs after using guid() when creating offer