Managed object context initialisation fix