crash fix when the database is correupted