fixing patch orders