Fixing bug in list display