fix strange splice bug