Restore cursor from stack (issue #48)