Bugfix: small bug with generated indexname in index snippet code