Fix insert item smart for looped splines.