Fix error: calculaton of wrong input if you press the button
Add useless condition.