[BUGFIX] Database integrity check fatal error