Fix clear() not fully clearing the EntityFramework