Bugfix in KQs order