fix module behavior in WebWorkers