fixed context save callback called for each context