fixed getwindowname issue