BUG: Bad parent call in onAfterUpload

Fixes #2