Fix layout issue of document in Firefox