fix filter when going back in history without leaving the page