correct compiling error
fix core data crash problem.