fix splice bug