Fix EF connection issue