Fix bugs due to reserving the result of calculation on the screen