fix quality bug