Fixes for node ver 0.6

Fixes for node ver 0.6