Fix upload not working