(bluefox) fix error in adapter.js