Fix refresh counter not resetting correctly when using custom name