fix firefox getPapreSize() issue