Fix pasting on Firefox.