Don't leak visual_key CO.
Fix signed comparison warning.