is_leaf had an off-by-one error...