fix list pop bug