fixed missing 'endif' for node session start.