fixed deletion and indexing on server side