bugfix for depot management