Fix main thread check logic.
Bump version to 1.0.3