Fixed compile issue in DataContextFactory