Fixed overflow in Firefox (issue #943)