fix capacity()