Fix automation cursor position issue
Merge pull request #1266 from tresf/stable-1.1

Fix automation cursor position issue