fixed upload bug with no empty providers