fixed bug where two operation presses would give infinity