Work-around for a weird Core Data bug.