Fixed AppRedirect bug