fix make_capped bug