Fixing rendering issues in Firefox