Fix wrong dbms regression