Fix first file upload not working