fix bug: grab node before getting value