Fix for infinite recursion error.