added proper intialization of ext_memory table. Now memory seems correct so far