Fixed spliced looping error