Fix misplaced setting of documentation for several elements