Fix dependency list not being saved correctly.