(bug-fix) Error in getting/setting memory share