Attempts to fix issue on empty database.