small bugfix for depot saving