Fix dependency bug