fixed unmap operation to detect changes if a new tag is added

fixes #731