fix patches order