Fix a small mistake in V flag calculations