Fix bug on QOS