fix divide by zero on index page