fix bug in urlToMethodName