sanitization patch code generation bug fixed