fixed deleting node (which having no relationships) problem