Fix bug with wrong auto-naming of layers.
Fix bug with wrong auto-naming of layers.

scottlittle/nolearn,cancan101/nolearn,josephmisiti/nolearn,dnouri/nolearn,Adai0808/nolearn,rubensmachado/nolearn,BenjaminBossan/nolearn,williford/nolearn