Add work around for Firefox driver bugs