Rewinding cursor allows reading results in the template