bug fix for quality var