Fixed a division by zero error. Thanks, Alex!
Next iteration of splines