fix avatar component url change and refresh