fix syntax error in patch