Fix an issue with the refresh_all procedure taking incorrect parameters