Second attempt at fixing reverse().