remove row when there's no row bug fixed