Fix navigation bug on Firefox.