fixed out of date EntityState example