Fix node api issue