fix, put the retry in the right place