Fixed bug with checking delete links