Fixed race condition bug
Release 0.2.2