Fix for model uploading to work

Fix for model uploading to work. The deleted elements were causing an
error when trying to upload models.