fixed broken linspace on len = 1 case