[alternativesoftcammanager] rewritten code, I hope that resolved the error when quickly pressed the buttons, some optimization