merge paths on gives syntax error