Fixed bug in memory recognition in mem_split