Fixed bug when a stage is disabled.