fixed the calculator