Added workaround for sending ArrayBuffer to worker