tag can't be null here otherwise a lot of stuff will break. But ok, I'all add the check.