Fixed small bug. Index name should be used to lookup entry.