the second time the worker is running I get callback undefined