[generic] Fix wrong entries index