fixed entity framework issue at work