fix issue with callback in worker