Fix infinite loop
Remove repeating context depth error