fixing bug in URL of avatar