Fix build_scale, np.roll should be negative