Trying to fix am async problem