core.completion: fix store append bug