Fixed a bug with DeleteView