Fix infinite recursion (fixes #193)