(bluefox) fix adapter.js