Fix do_calc displaying two newlines