Fixing sizing bugs in chrome and firefox