update core file.fix some bug.