fixed auto redirect to index.html