fix bad manual patch editing