fix delete in coredata