Linspace used wrong