hotfix bug with database errors