fix core data