Window settings and static window bug fixed