delete by query fix