Change y value of dummy points according to its length