Fixed bad actionbutton detection
Removed logging.