patch for failure in recent versions of firefox