fix draw window forever