Update layer.cc