Fixing usage of persistent mem amd