fix for empty definitions (Fixes #1)