fix products index n+1