fixed splice errors