fixed bugs on the dynamic upload form