Fixed bug in snapshot deletion.