fix math sum index render