fix bug in refresh_list