[FIX] copy the context before update it