some fix in upload template