list add insert_cur function and fixed some bug