fix Trinity patch file