fix home redirect issue