fixed the longstanding myids memory leak