fixed memory logger and the error when logging processes