Fix pathname syntax error