a small linspace bug