Fixed windowname problem