fixed retry invokation for calling setState

this patch fixes the retry functionality for calling the excercise state restoration.