fix declarative syntax of automator