set tag assigns to the local ctx. Fixes gh-303