Fix dependency validity.

Fixes #42