Fix /mem issue