avoid loops while crawling