Fix previousState scope to success closure