Fix restoring marker after closing tooltip