Fix resizing erro in Firefox