Fix upload exception