fixed parsing q bug from url