Fixed the folding of the delays
Fixed the getting of weights when a delay vertex is present