Fixed typo and extra brace in PATCH generator