Fixing bug in qs.