Fix memory debug interface