Fix patches application in ace