Fix offset calculation in Firefox and increase the margin of reported errors.