Fix -v parsing