Fix setMappingLayer when connection name is set.