fix for issue #7 (async error)