Fix default constructor loop bug. Fixes #39.