Update LayerManager.cpp