fixed a logic error in list_update