fix syntax error in redirect