fix patch formatting