Fix layout bug in Firefox