trying to fix redirect issue