bug-fix for async