Fixing mem to acc