fix bug in lists