fixed list clearing bug