Fix bug of empty dependency