Fixed setFields method in the AddPart class