spit: fix truncation issue