Fixed bug where automation mode wasn't being reflected in UI.