fix entity framework troubles