Fixing error for multple upload