Fix createOffer and createOffer for Firefox
Fix createOffer and createAnswer for firefox