fix redirect to not double load