fixed issue so many redirect