Fixed bug that sometimes give a empty trace page