capacity bug fix