Fix bugs redirect wrong url