Fix a bug with running job by method name