fix redirect command