Fix x/y/weight list in range calculation