fixed entity framework troubles