Fixes duplicate file uploaded callback.