fixing munged patch