fixing bug with multiple memchace client instances