fix IE10&Firfox double arithmetic difference