You moved this part before the section refresh, is there a reason?
Somehow it seems more logical, but I wonder whether there was a reason to do a refresh first