fixed bug when no rows for node