Fix problem with generate tube doesn't stop