hi I think the problem is that you have to make an OR condition
line 40 = do something if between 40 and 120
line 41 = do something if smaller then 40 AND larger then 120 (so never)
should work if you make a blank sub event and move your two b17 lines into it and make it an OR block (right mouse button)
then move the action "subtract" into the or condition.