Fixes errors in adb.js