prevent onStageResized if disposed
bugfix when rendering with less parts