Fixed Duplicate file uploads bug