Transformed patches bug fix