fixed empty node crashed.