fix bug with list