Bug in list peeking