Fixed empty window.queryParam issue