Fix two tabs are created when joining with incorrect casing