fix incorrect list operation