fix appending of zero length list in update_list()