Fix a bug induced by the last commit.
Correctly update model on upload abort