Fixed deprecated "onSuccess" in the async library