fixbug of curr_r_ is NULL, use vector::empty