fixed bug in peek (removing all invalid entries first, fixed bug removing self links in candidates and in dQ