Fixed issue with linspace.