Memory spec generation fix for trace collection.