Fix bugs in ACL\memory