fixed

there was a number of missing query deletions in code I recovered them just to make sure nothing similar to previous bug would happen as that was quite dangerous