fix upload avatar issue