fix redirecting (to index page)