Fix table reference for automaton head.