Fixed capacity bug