Add error for duplicate characters in the same layer