Try to fix AttributeError recursion error