fixed cyclic dependencies in Node.

Signed-off-by: Daniel Fagnan <dnfagnan@gmail.com>