bugs bugs on saving to core data