calculator fix bug