fixes #311 - Cursor now updates correctly on failure.