Fixing issues with the displayed value during certain operations