fix avatar upload bug