Fix computation of AutomationController steps