Avoid recursion loop