fixed bug with the list assembly code