Fix infinite recursion

Fixes #1 .