Fixed database corruption.