fixed firefox bug with dimension display issue