I did a silly workaround because when at normal mode and going to insert mode, it is not the same as being in insert mode and going to insert mode. Somehow the cursor jumping is broken. So what i did was to call a insert_mode a first time before any actual jumping.