[js-phantom] fix error