Lists makes an infinite loop