[qmf] Fix bug in last commit logic