fixed browser width calculation bug in Firefox