Fix layout bug in ie and firefox