Fixed database object error