db crash bug fixed