Fixed jumping cursor issue