fix x-values to 0-1 range