Prevent duplicate layer names