fix quality type