Fixing "drop offs" for sampled values.