Fixes recursive callings.