stack to detect cicular deps cleared incorrectly