Handle the call of the async callback fuction correctly