Change onFail callback