tank capacity bug fix