Fix some more bugs in dbx api