fix bug when printing capacity