trying to fix random redirect URL issue