Fix some firefox issue