fix grad_list index