fixed node selection bugs

fixed node selection bugs