bug fix for empty depotId