Fixed problem with duplicating the lang attribute