fixes get capacity