It works better when we wait for the activity, because otherwise it might be failing