fix constructor of datacontext