Fixed resetdbs crash