Fix bugs on upload field