Restore stageHeight function.