Fix for a tweak in adapter.js