fix the automation