fixed mspec mem problem