[js-phantom] fix bug