fixed avatar upload bug and edit avatar url bug