removing auto redirect