Fix navigation rendering issue on Firefox