Bug fix: error for destroying models