fix #35 debug window issue