Fixed bug in summary index creation