If you increase rhs value of TM==1 more than 1 (e.g. 3 or 4), you can avoid stylus chattering (accidental opening and closing).