Fix usage of self.usedbs flag