Fixed deletion of models