Fix crash with back during upload