fix compile failed when enable debug.