fix bug in loop over display_list