fix for empty definitions (Fixes #45)