bug fix on node api'