fix bug with delete id