DBEntities bag fix