fixed splice bug