Fix capacity error