I do not know if the posted issue can be resolved in the plugin or in template hence I am posting it
in both the location.
For info please see the following link.
http://www.dokuwiki.org/plugin:indexmenu:discussion?&#issue_with_vector_template
Thanks in advance.