fixed a minor bug (not with calculation, with console)