apply patch to fix first order