fix sizing bugs in firefox