After translation of all content, the anchor links in main menu are not working, even though they were translated. I checked both the CSS ID and link in menus. Everything looks good but not working.
The problem was that when translating all content through wpml automatic translations, some CSS ID and anchor links from submenu items, were translated with first letter in capital.
The solution was to set all anchor tags in lowercase.