fixed the curr_line not update when generate get or set map ir.
add del api.