dbtype bug fix