fixed dbport flag bug