fix paths in avatar upload