Fixed splicing code