fix wrong depletion handling