Fix syntax error and dup file