fixed RAM leak