fix touch-recording of automation in a loop