Fixed clone() in path, was not copying some attributes correctly