bugfix: avoid a potential infinite recursion