Fixes files not being uploaded.