self.onmessage tranferable error corrected #108

a better correction for #108  self.onmessage tranferable error corrected