Fix small issue in layer.i