Fixed segfault while backup nosqldatabase