Fixing bugged upload