Fixed insert_index bug
Cursor did nothing when it should have moved out of screen