bug fix on node api second call