Fixed a bug in dbt.c