fix bug re hardcoded index
simplecov