Fixed managedContext in the model