fix. windows memory bug