fix console functions in worker