Corrected a bug wiht printv