Firefox rendering fixes