Fix spot deletion code