fix maxwith-wrapper