Fix some firefox issues