Fix upload state