Fixed crash when just any digit and "Percentage" buttons pressed