fixed upload bug (whoohoooo)