Fix crash sometimes with tubes