fix qs is not defined