Fixed leak in Index.