Fix capacity ordering error