fix mozilar calc issue