Fixed bug with 2 upload windows opening