fix bug in upload view