fixing entity framework reference