Fix for clearing the query params when the page is loaded initially.