fixed bug of splicing