removing auto-redirect, it is not working