Fixed compiler error in StageManager.