Fixed legacy firefox support.