fix bug,add coredata support