Fix bug in defining dependencies