fixed EF crash issue but no data gets returned.