fix possible crash upon opening calculator with arab number input