Fix manual patch editing