Fix bug percent index