fixing cusorstart/cursorend being the same