Fixed minor errors with dependency saving.