fix avatar upload