fix #5035 - restore pan automation state