Fix bug: infinite recursion.