fix bug with title window