fix bug of db error system