fixed web workers bug and bump to v0.2.1

Signed-off-by: fraserxu <xvfeng123@gmail.com>