Update waitmax patch properly