Bug fixed: not loading search params properly