Fixed bug with crash if multiple async calls

Resolved #3