fixed typos, added tx around setProperty in PatchCommand