fixed bug in printing quality values that might have nil as a sub-quality