Fix crash sometimes with tubes
Merge pull request #36 from Novatux/tubesfix

Fix crash sometimes with tubes