Leaf Bundle and active menu

I try to print the class active in my main menu using IsMenuCurrent https://gohugo.io/functions/ismenucurrent/

Is working fine if the content is Branch Bundle.
If the content is Leaf Bundle is not working. If I change the file from index.md to _index.md it will work but I dont want to do this because is just a single page