removed useless goto in insert_at_cursor