This is what I suspect is wrong. Can you confirm that capacity_ is being set correctly?