fixed upload attempt before needed issues